var serverHost_debug='http://10.10.10.107:8080';
var serverHost_test='https://lefantian.jiahuagame.com';
var serverHost_prod='https://c-c.jiahuagame.com';
var serverHost_err='https://localhost:8080';
function hostName(){
	var address = window.location.host;//浏览器地址
	console.log(address);
	var exp_debug = new RegExp("(\\d{1,3}\\.){3}");
	var exp_test = new RegExp("lefantian.+\\.");
	var exp_pro = new RegExp("\\.jiahuagame\\.");
	if(exp_debug.test(address)) return serverHost_debug;
	else if(exp_test.test(address)) return serverHost_test;
	else if(exp_pro.test(address)) return serverHost_prod;
	return serverHost_err;
}